package com.milotnt.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.milotnt.pojo.productEntity;
import com.milotnt.vo.ProductVo;

import java.util.List;

public interface ProductMapper extends BaseMapper<productEntity> {

    Boolean insertProduct(productEntity product);

    Boolean deleteByProductId(Long productId);

    List<ProductVo> selectByProductId(Long productId);

    Boolean updateProductByProductId(productEntity product);

    Integer selectTotalCount();

    List<ProductVo> findAllProducts();

}
